package org.warehouse.util;

/**
 * Represent enumeration of sort ordering
 */
public enum Sort {
	ASC("ASC"), DESC("DESC");
	private final String name;
	
	private Sort(String name) {
		this.name = name;
	}
	
	public Sort swap() {
		return this == ASC ? DESC : ASC;
	}
	
	public String getSort() {
		return name;
	}
}
